xm: Fix string index out of range in 'vcpu-pin' command
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 9 Apr 2010 07:54:25 +0000 (08:54 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 9 Apr 2010 07:54:25 +0000 (08:54 +0100)
commitbf294945edf1e33cae1edbc4c20be5d311d2382d
treea075ce84c7c34864763661d2de4264f29d916d3e
parent38c0598f9c61f5be0174657eea6fb0f689c40778
xm: Fix string index out of range in 'vcpu-pin' command

if <PCPUs> contins '' (e.g. '1,,2'), error 'string index out of range'
occurs. Fix this trivial bug.

Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
tools/python/xen/xm/main.py